package com.cskaoyan.mapper;

import com.cskaoyan.bean.MallCategory;
import com.cskaoyan.bean.MallCategoryExample;
import com.cskaoyan.model.bo.goods.categorybrand.CategoryListChildren;
import com.cskaoyan.model.bo.goods.categorybrand.GoodsCategoryList;
import com.cskaoyan.model.vo.category.CategoryL1Vo;
import com.cskaoyan.model.vo.category.CategoryListChildrenVo;
import org.apache.ibatis.annotations.Param;

import java.util.ArrayList;
import java.util.List;

public interface MallCategoryMapper {
    long countByExample(MallCategoryExample example);

    int deleteByExample(MallCategoryExample example);

    int deleteByPrimaryKey(Integer id);

    int insert(MallCategory record);

    int insertSelective(MallCategory record);

    List<MallCategory> selectByExample(MallCategoryExample example);

    MallCategory selectByPrimaryKey(Integer id);

    int updateByExampleSelective(@Param("record") MallCategory record, @Param("example") MallCategoryExample example);

    int updateByExample(@Param("record") MallCategory record, @Param("example") MallCategoryExample example);

    int updateByPrimaryKeySelective(MallCategory record);

    int updateByPrimaryKey(MallCategory record);

    //查找所有category 并返回
    List<GoodsCategoryList> selectCategory();

    List<CategoryListChildren> selectChildrenCategroy(int value);

    ArrayList<CategoryListChildrenVo> selectByPid(Integer pid);

    ArrayList<CategoryL1Vo> selectcategoryl1();

    int insertModify(MallCategory mallCategory);
}
